<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/layui.js"  charset="utf-8"></script>
    <script>
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form()
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  
  //创建一个编辑器
  var editIndex = layedit.build('LAY_demo_editor');
 
  //自定义验证规则
  form.verify({
    title: function(value){
      if(value.length<1){
        return '姓名不能为空，';
      }
    }
    ,pass: [/(.+){11,11}$/, '手机号必须是11位']
    ,content: function(value){
      layedit.sync(editIndex);
    }
  });
  
  //监听指定开关
  form.on('switch(switchTest)', function(data){
    layer.msg('开关checked：'+ (this.checked ? 'true' : 'false'), {
      offset: '6px'
    });
    layer.tips('温馨提示：请注意开关状态的文字可以随意定义，而不仅仅是ON|OFF', data.othis)
  });
  
  //监听提交
  
  
  
});
layui.use('layedit', function(){
  var layedit = layui.layedit
  ,$ = layui.jquery;
  
  //构建一个默认的编辑器
  var index = layedit.build('LAY_demo1');
  

  $('.site-demo-layedit').on('click', function(){
    var type = $(this).data('type');
    active[type] ? active[type].call(this) : '';
  });
  
  
});
</script>
</head>
<body>
    
        <blockquote class="layui-elem-quote">请准确配置网站信息</blockquote>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>网站信息配置</legend>
</fieldset>
    <form action="wangzhanconfig.php" class="layui-form" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">网站名称</label>
                <div class="layui-input-inline">
                     <input type="text" name="name"  placeholder="请输入姓名" autocomplete="off" class="layui-input" >
                 </div>
        <div class="layui-form-mid layui-word-aux">请准确填写网站名称</div>
        </div>

        

        <div class="layui-form-item">
        <label class="layui-form-label">地址</label>
            <div class="layui-input-inline">
                <input type="text" name="dizhi"  placeholder="请输入" autocomplete="off" class="layui-input" lay-verify="required"> 

            </div>
            </div>
            <div class="layui-form-item">
            <label class="layui-form-label">联系电话</label><div class="layui-input-inline">
                <input type="text" name="phone"  placeholder="请输入固定电话" autocomplete="off" class="layui-input" lay-verify="required"> 
            </div>
        <div class="layui-form-mid layui-word-aux">填写联系电话</div>
         </div>
         <div class="layui-form-item">
            <label class="layui-form-label">QQ</label>
                <div class="layui-input-inline">
                     <input type="text" name="QQ"  placeholder="请输入QQ号" autocomplete="off" class="layui-input" lay-verify="required">
                 </div>
        <div class="layui-form-mid layui-word-aux"></div>
        </div>      
        </div>
      
    
   <div class="layui-form-item">
            <label class="layui-form-label">友情链接</label>
                <div class="layui-input-inline">
                     <input type="text" name="youqinglianjie"  placeholder="请输入" autocomplete="off" class="layui-input"  lay-verify="required">
                 </div>
        <div class="layui-form-mid layui-word-aux">请准确填写</div>
        </div> 
        <div class="layui-form-item">
            <label class="layui-form-label">URL</label>
                <div class="layui-input-inline">
                     <input type="text" name="URL"  placeholder="请输入" autocomplete="off" class="layui-input"  lay-verify="required">
                 </div>
        <div class="layui-form-mid layui-word-aux">请准确填写</div>
        </div> 
           <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">版权声明</label>
    <div class="layui-input-block">
      <textarea placeholder="请输入内容" class="layui-textarea" id="LAY_demo1" name="banquan" style="display: none"></textarea>
    </div>
  </div>   
       

   
  
   <div class="layui-form-item">
    <div class="layui-input-block">
    <input type="submit" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit="" lay-filter="demo1"></input> 
      
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      
    </div>

    
    </form>
  
</body>
</html>